﻿@using Kojarskiy.Models
@using Kojarskiy.Core
@model Kojarskiy.Models.SiteMap

@{
    ViewBag.Title = "Удаление статической страницы";
}

@Html.ActionLink("Администрирование", "Index", "Admin") | @Html.ActionLink("Страницы", "Index", "SiteMap") | @ViewBag.Title
<div style="clear: both;"></div>

<fieldset>
<legend>@ViewBag.Title</legend>

@using (Html.BeginForm(Html.BeginForm("Delete", "SiteMap", new { id = Model.SiteMapId }, FormMethod.Post, new { role = "form" })))
{
        <div class="form-group">
            <label>Название страницы</label>
            <div class="form-control disabled">@Model.PageName</div>
        </div>

        <div class="form-group">
            <label>Title</label>
            <div class="form-control disabled">@Model.Title</div>
        </div>    

        <div class="form-group">
            <label>Description</label>
            <div class="form-control disabled">@Model.Description</div>
        </div>       

        <div class="form-group">
            <label>Keywords</label>
            <div class="form-control disabled">@Model.Keywords</div>
        </div> 
    
        <div class="form-group">
            <h4>Контент страницы</h4>
            <div>
                @Html.Raw(Model.Content)                
            </div>
        </div>    

    <div class="form-actions">
        <input type="submit" value="Удалить" class="btn btn-danger" />
    </div>
}

</fieldset>